﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ScoreMoveUp : MonoBehaviour
{

    float _Y;
    void Start()
    {
        _Y = transform.localPosition.y;
    }
    private float _speed = 0.2f;
    // Update is called once per frame
    void Update()
    {

        if (transform.localPosition.y <= _Y + 120)
        {
            transform.Translate(Vector3.up * Time.deltaTime * _speed, Space.World);
        }

    }
}
